home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / clib / commodities_protos.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  2KB  |  78 lines

  1. #ifndef  CLIB_COMMODITIES_PROTOS_H
  2. #define  CLIB_COMMODITIES_PROTOS_H
  3.  
  4. /*
  5. **    $VER: commodities_protos.h 38.4 (27.2.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  EXEC_NODES_H
  18. #include <exec/nodes.h>
  19. #endif
  20. #ifndef  LIBRARIES_COMMODITIES_H
  21. #include <libraries/commodities.h>
  22. #endif
  23. #ifndef  DEVICES_INPUTEVENT_H
  24. #include <devices/inputevent.h>
  25. #endif
  26. #ifndef  DEVICES_KEYMAP_H
  27. #include <devices/keymap.h>
  28. #endif
  29. /*--- functions in V36 or higher (Release 2.0) ---*/
  30.  
  31. /*  OBJECT UTILITIES */
  32.  
  33. CxObj *CreateCxObj( unsigned long type, long arg1, long arg2 );
  34. CxObj *CxBroker( struct NewBroker *nb, LONG *error );
  35. LONG ActivateCxObj( CxObj *co, long tf );
  36. void DeleteCxObj( CxObj *co );
  37. void DeleteCxObjAll( CxObj *co );
  38. ULONG CxObjType( CxObj *co );
  39. LONG CxObjError( CxObj *co );
  40. void ClearCxObjError( CxObj *co );
  41. LONG SetCxObjPri( CxObj *co, long pri );
  42.  
  43. /*  OBJECT ATTACHMENT */
  44.  
  45. void AttachCxObj( CxObj *headObj, CxObj *co );
  46. void EnqueueCxObj( CxObj *headObj, CxObj *co );
  47. void InsertCxObj( CxObj *headObj, CxObj *co, CxObj *pred );
  48. void RemoveCxObj( CxObj *co );
  49.  
  50. /*  TYPE SPECIFIC */
  51.  
  52. void SetTranslate( CxObj *translator, struct InputEvent *events );
  53. void SetFilter( CxObj *filter, STRPTR text );
  54. void SetFilterIX( CxObj *filter, IX *ix );
  55. LONG ParseIX( STRPTR description, IX *ix );
  56.  
  57. /*  COMMON MESSAGE */
  58.  
  59. ULONG CxMsgType( CxMsg *cxm );
  60. APTR CxMsgData( CxMsg *cxm );
  61. LONG CxMsgID( CxMsg *cxm );
  62.  
  63. /*  MESSAGE ROUTING */
  64.  
  65. void DivertCxMsg( CxMsg *cxm, CxObj *headObj, CxObj *returnObj );
  66. void RouteCxMsg( CxMsg *cxm, CxObj *co );
  67. void DisposeCxMsg( CxMsg *cxm );
  68.  
  69. /*  INPUT EVENT HANDLING */
  70.  
  71. BOOL InvertKeyMap( unsigned long ansiCode, struct InputEvent *event,
  72.     struct KeyMap *km );
  73. void AddIEvents( struct InputEvent *events );
  74. /*--- functions in V38 or higher (Release 2.1) ---*/
  75. /*  MORE INPUT EVENT HANDLING */
  76. BOOL MatchIX( struct InputEvent *event, IX *ix );
  77. #endif     /* CLIB_COMMODITIES_PROTOS_H */
  78.